package com.micheal.pattern.factory.simple;

/**
 * Created by micheal on 2018/3/21/0021.
 */
public class SimpleTest {

    public static void main(String[] args) {

        SimpleFactory factory = new SimpleFactory();

        System.out.println(factory.getPhone("三星").getName());
        System.out.println(factory.getPhone("苹果").getName());
        System.out.println(factory.getPhone("华为").getName());

    }

}
